scale: Fix mark indicator allocations
authorTimm Bäder <mail@baedert.org>
Fri, 30 Jun 2017 10:40:40 +0000 (12:40 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:15 +0000 (21:27 -0400)
gtk/gtkscale.c

index 75fd3557352eeaccee487f40f06d262da066eceb..4ee94114b6300cf48cfbb12d25059a3ce28471fc 100644 (file)
@@ -432,7 +432,7 @@ gtk_scale_allocate_mark (GtkGizmo            *gizmo,
 
   if (orientation == GTK_ORIENTATION_HORIZONTAL)
     {
-      indicator_alloc.x = mark->stop_position - indicator_width / 2;
+      indicator_alloc.x = indicator_width / 2;
       if (mark->position == GTK_POS_TOP)
         indicator_alloc.y = allocation->y + allocation->height - indicator_height;
       else
@@ -446,7 +446,7 @@ gtk_scale_allocate_mark (GtkGizmo            *gizmo,
         indicator_alloc.x = allocation->x + allocation->width - indicator_width;
       else
         indicator_alloc.x = allocation->x;
-      indicator_alloc.y = mark->stop_position - indicator_height / 2;
+      indicator_alloc.y = indicator_height / 2;
       indicator_alloc.width = indicator_width;
       indicator_alloc.height = indicator_height;
     }